package com.github.permissiondog.cancanpandroid.model;

public enum QuestionType {
    TEXT,
    DATE,
    TIME,
    SINGLE_CHOICE,
    MULTI_CHOICE,
    IMAGE;

    @Override
    public String toString() {
        return name();
    }

    public static boolean isChoice(QuestionType type) {
        return SINGLE_CHOICE.equals(type) || MULTI_CHOICE.equals(type);
    }
    public boolean isChoice() {
        return isChoice(this);
    }
}
